<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="harekettur" styleClass="edit">

        <rich:panel>
            <f:facet name="header">#{hareketturHome.managed ? 'Edit' : 'Add'} Harekettur</f:facet>

            <s:decorate id="adField" template="layout/edit.xhtml">
                <ui:define name="label">Ad</ui:define>
                <h:inputText id="ad" required="true" size="50" maxlength="50" value="#{hareketturHome.instance.ad}">
                    <a:support event="onblur" reRender="adField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>

            <s:decorate id="grupField" template="layout/edit.xhtml">
                <ui:define name="label">Grup</ui:define>
<!--				<rich:comboBox defaultLabel="Seçim Yapınız" required="true" width="250" value="#{hareketturHome.instance.hareketturgrup}">-->
<!--		            <s:selectItems value="#{hareketturgrupList.resultList}" var="ind" itemValue="#{ind.ad}"/>  -->
<!--		            <s:convertEntity />  -->
<!--		      	</rich:comboBox>-->
		      	
		      	<h:selectOneMenu required="true" width="250" value="#{hareketturHome.instance.hareketturgrup}">
					<s:selectItems value="#{hareketturgrupList.resultList}" var="ind" label="#{ind.ad}" noSelectionLabel="Seçim Yapınız!"  />
					<s:convertEntity />
				</h:selectOneMenu>
				 
		      	
       		</s:decorate>
            
            <div style="clear:both">
                <span class="required">*</span>
                required fields
            </div>

        </rich:panel>

        <div class="actionButtons">

            <h:commandButton id="save"
                          value="Save"
                         action="#{hareketturHome.persist}"
                       disabled="#{!hareketturHome.wired}"
                       rendered="#{!hareketturHome.managed}"/>

            <h:commandButton id="update"
                          value="Save"
                         action="#{hareketturHome.update}"
                       rendered="#{hareketturHome.managed}"/>

            <h:commandButton id="delete"
                          value="Delete"
                         action="#{hareketturHome.remove}"
                      immediate="true"
                       rendered="#{hareketturHome.managed}"/>

            <s:button id="cancelEdit"
                   value="Cancel"
             propagation="end"
                    view="/Harekettur.xhtml"
                rendered="#{hareketturHome.managed}"/>

            <s:button id="cancelAdd"
                   value="Cancel"
             propagation="end"
                    view="/#{empty hareketturFrom ? 'HareketturList' : hareketturFrom}.xhtml"
                rendered="#{!hareketturHome.managed}"/>

        </div>
    </h:form>
</ui:define>

</ui:composition>
